<HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT>    /* Copyright 2007,2008,2009 John C. Gunther<a name="line.1"></a>
<FONT color="green">002</FONT>     * <a name="line.2"></a>
<FONT color="green">003</FONT>     * Licensed under the Apache License, Version 2.0 (the<a name="line.3"></a>
<FONT color="green">004</FONT>     * "License"); you may not use this file except in compliance<a name="line.4"></a>
<FONT color="green">005</FONT>     * with the License. You may obtain a copy of the License at:<a name="line.5"></a>
<FONT color="green">006</FONT>     * <a name="line.6"></a>
<FONT color="green">007</FONT>     *  http://www.apache.org/licenses/LICENSE-2.0<a name="line.7"></a>
<FONT color="green">008</FONT>     *<a name="line.8"></a>
<FONT color="green">009</FONT>     * Unless required by applicable law or agreed to in writing,<a name="line.9"></a>
<FONT color="green">010</FONT>     * software distributed under the License is distributed on an<a name="line.10"></a>
<FONT color="green">011</FONT>     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,<a name="line.11"></a>
<FONT color="green">012</FONT>     * either express or implied. See the License for the specific<a name="line.12"></a>
<FONT color="green">013</FONT>     * language governing permissions and limitations under the<a name="line.13"></a>
<FONT color="green">014</FONT>     * License.<a name="line.14"></a>
<FONT color="green">015</FONT>     */<a name="line.15"></a>
<FONT color="green">016</FONT>         <a name="line.16"></a>
<FONT color="green">017</FONT>    package com.googlecode.gchart.client;<a name="line.17"></a>
<FONT color="green">018</FONT>      /**<a name="line.18"></a>
<FONT color="green">019</FONT>       *<a name="line.19"></a>
<FONT color="green">020</FONT>       * By implementing this interface, and passing an instance of your<a name="line.20"></a>
<FONT color="green">021</FONT>       * class to &lt;tt&gt;setCanvasFactory&lt;/tt&gt;, you can "teach" GChart how to<a name="line.21"></a>
<FONT color="green">022</FONT>       * create the canvas-based widgets it needs to render non-rectangular<a name="line.22"></a>
<FONT color="green">023</FONT>       * aspects of your charts (solid-fill pie slices, continuously<a name="line.23"></a>
<FONT color="green">024</FONT>       * connected lines, solidly filled areas) much<a name="line.24"></a>
<FONT color="green">025</FONT>       * faster and with significantly better quality.<a name="line.25"></a>
<FONT color="green">026</FONT>       * <a name="line.26"></a>
<FONT color="green">027</FONT>       * &lt;p&gt;<a name="line.27"></a>
<FONT color="green">028</FONT>       * <a name="line.28"></a>
<FONT color="green">029</FONT>       * If you use &lt;tt&gt;GWTCanvas&lt;/tt&gt; from the GWT incubator project for the vector<a name="line.29"></a>
<FONT color="green">030</FONT>       * graphics library, it's mainly a matter of adding a small chunk of<a name="line.30"></a>
<FONT color="green">031</FONT>       * boilerplate code (which you can find in the<a name="line.31"></a>
<FONT color="green">032</FONT>       * &lt;tt&gt;setCanvasFactory&lt;/tt&gt; method's javadocs) to your application,<a name="line.32"></a>
<FONT color="green">033</FONT>       * adding &lt;tt&gt;gwt-incubator.jar&lt;/tt&gt; to your build path, and<a name="line.33"></a>
<FONT color="green">034</FONT>       * selecting GChart's "continuously filled" option for your<a name="line.34"></a>
<FONT color="green">035</FONT>       * curves via &lt;tt&gt;getCurve().getSymbol().setFillSpacing(0)&lt;/tt&gt;.<a name="line.35"></a>
<FONT color="green">036</FONT>       * See &lt;tt&gt;setCanvasFactory&lt;/tt&gt; for full details.<a name="line.36"></a>
<FONT color="green">037</FONT>       * <a name="line.37"></a>
<FONT color="green">038</FONT>       * &lt;p&gt;<a name="line.38"></a>
<FONT color="green">039</FONT>       *<a name="line.39"></a>
<FONT color="green">040</FONT>       * @see GChart#setCanvasFactory setCanvasFactory<a name="line.40"></a>
<FONT color="green">041</FONT>       * @see GChartCanvasLite GChartCanvasLite<a name="line.41"></a>
<FONT color="green">042</FONT>       * @see GChart.Symbol#setFillSpacing setFillSpacing<a name="line.42"></a>
<FONT color="green">043</FONT>       * @see GChart.Symbol#setFillThickness setFillThickness<a name="line.43"></a>
<FONT color="green">044</FONT>       * <a name="line.44"></a>
<FONT color="green">045</FONT>       **/<a name="line.45"></a>
<FONT color="green">046</FONT>      public interface GChartCanvasFactory {<a name="line.46"></a>
<FONT color="green">047</FONT>         /**<a name="line.47"></a>
<FONT color="green">048</FONT>          * A method that returns a GWT &lt;tt&gt;Widget&lt;/tt&gt; that implements<a name="line.48"></a>
<FONT color="green">049</FONT>          * the subset of a Mozilla canvas' features that GChart<a name="line.49"></a>
<FONT color="green">050</FONT>          * requires.<a name="line.50"></a>
<FONT color="green">051</FONT>          * &lt;p&gt;<a name="line.51"></a>
<FONT color="green">052</FONT>          *<a name="line.52"></a>
<FONT color="green">053</FONT>          * Note that the returned object must &lt;i&gt;both&lt;/i&gt; implement<a name="line.53"></a>
<FONT color="green">054</FONT>          * &lt;tt&gt;GChartCanvasLite&lt;/tt&gt; and be a GWT &lt;tt&gt;Widget&lt;/tt&gt;.<a name="line.54"></a>
<FONT color="green">055</FONT>          *<a name="line.55"></a>
<FONT color="green">056</FONT>          */ <a name="line.56"></a>
<FONT color="green">057</FONT>         public GChartCanvasLite create();<a name="line.57"></a>
<FONT color="green">058</FONT>      }<a name="line.58"></a>
<FONT color="green">059</FONT>    <a name="line.59"></a>




























































</PRE>
</BODY>
</HTML>
